package com.example.jikeyoujikeyou.office_sz.view;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.jikeyoujikeyou.office_sz.R;

/**
 * Created by sziit on 2017/12/27.
 */

public class TitleBar extends LinearLayout {

    private ImageView iv_return, iv_setting;
    private TextView tv_title, tv_setting, tv_cancel;

    public TitleBar(Context context) {
        this(context, null);
    }

    public TitleBar(Context context, @Nullable AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public TitleBar(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        View view = View.inflate(context, R.layout.layout_titlebar, this);
        iv_return = view.findViewById(R.id.iv_return);
        iv_setting = view.findViewById(R.id.iv_setting);
        tv_title = view.findViewById(R.id.tv_title);
        tv_setting = view.findViewById(R.id.tv_setting);
        tv_cancel = view.findViewById(R.id.tv_cancel);
    }

    public ImageView getIv_return() {
        return iv_return;
    }

    public ImageView getIv_setting() {
        return iv_setting;
    }

    public TextView getTv_title() {
        return tv_title;
    }

    public TextView getTv_setting() {
        return tv_setting;
    }

    public TextView getTv_cancel() {
        return tv_cancel;
    }
}
